package team.scau.laboratory_repair.common.page;


import com.querydsl.core.types.OrderSpecifier;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Arrays;

/**
 * @author 30254
 * creadtedate:2018/8/23
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class MyPage {

    private Integer page;
    private Integer size;
    private OrderSpecifier[] sort;

    public String getKey(){
        return getPage() + "_" + getSize() + "_" + Arrays.toString(getSort());
    }

}
